<script>
	import Vue from 'vue'
	export default {
		onLaunch: function() {
			console.log('App Launch')
			uni.getSystemInfo({
				success: function(e) {
					console.log('设备信息', e)
					// 手机底部吸底按钮高度
					Vue.prototype.botOperateBut = e.screenHeight - e.safeArea.bottom
					// 手机状态栏的高度
					Vue.prototype.StatusBar = e.statusBarHeight;
					// 项目自定义导航高度
					if (e.platform == 'android') {
						Vue.prototype.CustomBar = e.statusBarHeight + 50;
					} else {
						Vue.prototype.CustomBar = e.statusBarHeight + 45;
					};
				}
			})
		},
		onShow: function() {
			// console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import './common/style/public.css';
</style>
